type typeUser = {
  name?: string
  gender: string | number
  sex?: number
}
enum GenderType {
  ZERO,
  MALE = 18,
  FEMALE
}

const Bob: typeUser = {
  name: 'Bob',
  gender: GenderType.FEMALE,
  sex: GenderType.ZERO
}

console.log(Bob) //=> { name: 'Bob', gender: 19, sex: 0

enum Gender {
  MALE = '男',
  FEMALE = '女',
  ZERO = '保密'
}

const Henry: typeUser = {
  gender: Gender.MALE
}
console.log(Henry) //=> { gender: '男' }

export {}
